package com.banyuan.ClassRelated;

public class Human {
    private String name;
    private String sex;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Human() {

    }

    public Human(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public void run() {
        System.out.println(this.name + "正在跑步!");
    }

    public static void main(String[] args) {
        Human h = new Human("哈哈","男",18);
        h.run();
    }

}
